import axios from 'axios'

const instance = axios.create({
  baseURL: "https://www.linweiqin.cn/api/public/v1/",
});
/* 配置 响应的拦截器 data取出来 */
instance.interceptors.response.use(
  function (response) {
    return response.data;
  },
  function (error) {
    return Promise.reject(error);
  }
);

export default instance;